|
![](/i/fill.gif) |
W wrote:
>On Mon, 25 Mar 2002 06:55:32 -0500, "Corey Woodworth" <cdw### [at] mpinet net>
>wrote:
>> I don't really understand how far
>> reaching the function goes but I think I've figured out that it doesn't
>> scale with the container.
>
>One advice. Read _carefully_ documentation (all chapters about isosurfaces),
>then read http://www.econym.demon.co.uk/isotut/, and then study examples in
>/scenes/ folder available in standard distribution. It helps a lot.
>
>ABX
>
The http://www.econym.demon.co.uk/isotut/ link here isn't working anymore.
I use to do the image map stuff with megaPOV, but that code doesn't work
with POV 3.5, at least the version I downloaded a few months ago (I
think?).
This is how I did it in megaPOV -- but it doesn't work with POV 3.5:
// declare function with map_type 1 (spherical) mapping
#declare imageMap=function
{ pigment
{ image_map
{ png "C:\images\povsurf\earthbump.png"
map_type 1 interpolate 2
}
scale 0.32
//rotate x*45
//rotate y*85
//translate y*0.3
}}
// isosurface
#declare rs=0.015; // try rs values <1; higher it is, higher is text
#declare PlanetX = isosurface
{ function{x*x+y*y+z*z + rs - imageMap(x,y,z)*rs}
contained_by{sphere{0,1}}
eval
max_gradient 150 // adjust to picture otherwise strange things happen
threshold 1
texture
{ pigment
{ image_map
{ png "C:\images\povsurf\earthcolor.png"
map_type 1 interpolate 2
}
scale 0.32
//rotate x*45
//rotate y*85
//translate y*0.3
}
}
}
I've got a lot of megaPOV code like that, is there an easy way to translate
it into something that works in POV 3.5?
normdoering
Post a reply to this message
|
![](/i/fill.gif) |